#ifndef _RECTANGLE_ENTITY_H_
#define _RECTANGLE_ENTITY_H_

#include "engine.h"
#include "opengl/opengl_buffer.h"
#include "entity/entity3D.h"
// #include "math/Vector3D.h"

namespace engine
{
    class RectangleEntity : public Entity3D
    {
    public:
        RectangleEntity(float x, float y, float width, float height)
        {

            float vertices[] = {x, y, 0,
                                x + width, y, 0,
                                x, y + height, 0,
                                x + width, y + height, 0};
            this->vertexArray->addVertexBuffer(new VertexBuffer(vertices, 4), 1, 3);
            // setVertexData(vertices);
        }
        virtual ~RectangleEntity() {}

    private:
    };
}
#endif